import Router from '@koa/router'
import {
    deletePriceModeByIdController,
    getPriceModeOptionListController,
    getPriceModePageController,
    postPriceModeController,
    putPriceModeByIdController,
} from '../controllers/priceMode'

const priceModeRouter = new Router({
    prefix: '/price-mode',
})

// 用户的增删改查
priceModeRouter.get('/', getPriceModePageController) // 获取用户列表
priceModeRouter.get('/option-list', getPriceModeOptionListController) // 获取用户列表
priceModeRouter.post('/', postPriceModeController) // 添加用户
priceModeRouter.put('/:id', putPriceModeByIdController) // 修改用户信息
priceModeRouter.delete('/:id', deletePriceModeByIdController) // 删除用户

export default priceModeRouter
